package com.souche.employment.dto;

import com.souche.employment.domain.UserDO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * UserDO.java created at 2017年8月9日 上午11:49:53
 *
 * @author Ray [email:rayinhangzhou@hotmail.com] Revision History Date Programmer Notes
 *         ----------------------------------------------------------
 **/
@Data
public class UserDto implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String id;
    private String type;
    private String name;
    private String mail;
    private String password;
    private Date dateCreate;
    private Date dateUpdate;
    private String lastLogin;

    public UserDto() {

    }

    public UserDto(UserDO userDO) {
        this.id = userDO.getId();
        this.name = userDO.getName();
        this.mail = userDO.getId();
        this.type = userDO.getType();
        this.password = userDO.getPassword();
        this.dateCreate = userDO.getDateCreate();
        this.dateUpdate = userDO.getDateUpdate();
    }
}
